package ar.uba.dc.cmovil.tripplanner.view;

import android.app.Activity;
import android.view.View;
import android.widget.ImageButton;
import android.widget.TextView;

import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.SupportMapFragment;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.MarkerOptions;

import ar.uba.dc.cmovil.tripplanner.R;

/**
 * Created by anton on 10/3/13.
 */
public class PlaceView extends View {

	private GoogleMap map;
    private TextView placeName;
    private TextView arrivalDate;
    private TextView placeDescription;
    private TextView moreDescription;
    private ImageButton addToCalendar;
    private String moreDescriptionLink;


    public PlaceView(Activity activity) {
        super(activity, null);

        activity.setContentView(R.layout.activity_place);
        addToCalendar = (ImageButton) activity.findViewById(R.id.placeAddToCalendarButton);
        placeName = (TextView) activity.findViewById(R.id.pv_place_name);
        arrivalDate = (TextView) activity.findViewById(R.id.pv_arrival_date);
        placeDescription = (TextView) activity.findViewById(R.id.pv_description);
        moreDescription = (TextView) activity.findViewById(R.id.pv_more_description);
    }

    public void setPlaceName(String name) {
        placeName.setText(name);
    }

    public void setArrivalDate(String date) {
        arrivalDate.setText(date);
    }

    public void setPlaceDescription(String description) {
        placeDescription.setText(description);
    }

    public void setMoreDescriptionLink(String link) {
        moreDescriptionLink = link;
    }

    public TextView getMoreDescription() {
        return moreDescription;
    }

    public ImageButton getAddToCalendarButton() {
        return addToCalendar;
    }

	public int getMapId() {
		return R.id.pv_map;
	}

	public GoogleMap getMap() {
		return map;
	}

	public void setMap(GoogleMap map) {
		this.map = map;
	}
}
